<?php
/**
 * Created by PhpStorm.
 * User: yangyou
 * Date: 2019/1/21 0021
 * Time: 14:10
 */

namespace app\index\model;


class Order extends Base
{
    protected $autoWriteTimestamp = true;

    public function orderList($user_id = ""){
        return $this->alias('a')->field('a.*,b.no,b.price,b.cover')->join('shop_drawing b','a.drawing_id=b.drawing_id','left')->where("uid",$user_id)
            ->order("create_time DESC")
            ->select();
    }

}